package com.alex.ioc.lifecycle;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("lifecycle.xml");

        Car car1 = (Car) ctx.getBean("car1");
        System.out.println(car1);
        ctx.close();
    }
}
